package com.ruoyi.system.service.vantservice.orderservice.impl;

import com.ruoyi.system.domain.zhuangxiumain.orderformMain.OrderDetail;
import com.ruoyi.system.mapper.vant.order.ApiOrderDetailMapper;
import com.ruoyi.system.service.vantservice.orderservice.ApiOrderDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by 惠普 on 2020/12/29 11:07
 */
@Service("apiOrderDetailService")
public class ApiOrderDetailServiceImpl implements ApiOrderDetailService {
    @Resource
    private ApiOrderDetailMapper apiOrderDetailMapper;

    /**
     * 根据订单id修改订单详情
     * @param orderId
     * @return
     */
    @Override
    public int updateOrderDetail(Integer orderId) {
        return apiOrderDetailMapper.updateOrderDetail(orderId);
    }

    /**
     * 添加订单详情
     * @return
     */
    public int insertOrderDetail(OrderDetail orderDetail){
        return apiOrderDetailMapper.insertOrderDetail(orderDetail);
    }
}
